package eu.jpereira.trainings.designpatterns.creational.abstractfactory;

import eu.jpereira.trainings.designpatterns.creational.abstractfactory.xml.XMLReportBody;
import eu.jpereira.trainings.designpatterns.creational.abstractfactory.xml.XMLReportFooter;
import eu.jpereira.trainings.designpatterns.creational.abstractfactory.xml.XMLReportHeader;

public class XMLFactory extends AbstractFactory {

	private ReportBody body;
	private ReportFooter footer;
	private ReportHeader header;
	String reportType;
	
	public XMLFactory() {
		reportType = "JSON";
		body = new XMLReportBody();
		footer = new XMLReportFooter();
		header = new XMLReportHeader();
	} 
	
	@Override
	public ReportBody getBody() {
	
		return body;
	}

	@Override
	public ReportFooter getFooter() {
	
		return footer;
	}

	@Override
	public ReportHeader getHeader() {
		
		return header;
	}



}
